package com.jiuxian.rpc.config.provider;

import com.jiuxian.rpc.config.RpcConfigAbstract;

/**
 * 一个ProviderConfig对应唯一一个生产者提供的服务
 * 由ip:port - version - interfaceClass 确定
 * @author shenh
 */
public class ProviderConfig extends RpcConfigAbstract {
	/**
	 * 对应接口的实现类
	 */
	protected Object ref;
	/**
	 * ip:port
	 */
	protected String address;
	
	protected String version = "1.0.0";
	/**
	 * 权重
	 */
	protected int weight = 1;
	
	public Object getRef() {
		return ref;
	}

	public void setRef(Object ref) {
		this.ref = ref;
	}

	public String getAddress() {
		return address;
	}

	public int getWeight() {
		return weight;
	}

	public void setWeight(int weight) {
		this.weight = weight;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getVersion() {
		return version;
	}

	public void setVersion(String version) {
		this.version = version;
	}
	
}
